package com.wxy.demo.finally_;

import java.util.concurrent.TimeUnit;

/**
 * <p>
 * 验证finally在线程停止后任然执行
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2023/2/2 20:38
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(new MyRunnable());
        t.start();
        TimeUnit.SECONDS.sleep(1);
        t.stop();
    }
}
